<?php
// no direct access
defined('_JEXEC') or die;
?>
<form action="" method="get" enctype="multipart/form-data" name="frmsearch" onsubmit="return checksubmit();">
<ul class="mod_search_ul">
	<li>
    	Từ khóa:
    </li>
	<li>
    	<input type="text" name="keyword" value="" placeholder="Nhập từ khóa ..." class="mod_search_keyword"/>
    </li>
	<li>
    	Theo công ty:
    </li>
	<li>
    	<select name="company" class="mod_search_category">
        	<option value="">Chọn Công Ty ... </option>
            <?php foreach($company as $com):?>
            	<option value="<?php echo $com->value; ?>"><?php echo $com->text;?></option>
            <?php endforeach;?>
        </select>
    </li>
    <li>
    	Theo Tỉnh/Thành Phố:
    </li>
    <li>
    	<select name="address_id" class="mod_search_category">
        	<option value="">Chọn Tỉnh/Thành Phố ... </option>
            <?php foreach($address as $ad):?>
            	<option value="<?php echo $ad->value; ?>"><?php echo str_repeat('--',$ad->level); ?><?php echo $ad->text;?></option>
            <?php endforeach;?>
        </select>
    </li>
    <li>
    	Theo ngành nghề:
    </li>
    <li>
    	<select name="catid" class="mod_search_category">
        	<option value="">Chọn ngành ... </option>
            <?php foreach($options as $op):?>
            	<option value="<?php echo $op->value; ?>"><?php echo str_repeat('--',$op->level); ?><?php echo $op->text;?></option>
            <?php endforeach;?>
        </select>
    </li>
    <li>
    	<input type="submit" name="search" value="Tìm" />
    </li>
</ul>
<input type="hidden" name="option" value="com_shop" />
<input type="hidden" name="view" value="search" />
<input type="hidden" name="giaothuong" value="tuyendung" />
</form>
<script>
function checksubmit()
{
	var frm = document.frmsearch;
	if(frm.keyword.value == ''){
		alert('Nhập từ khóa tìm kiếm');	
		frm.keyword.focus();
		return false;
	}
}
</script>